package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class TimeZoneSpecifier {

    private int beginIndex;
    private int endIndex;
    private boolean local;
    private boolean timeZone;
    private IntervalPrimary intervalPrimary;

    public TimeZoneSpecifier(int beginIndex, int endIndex) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.local = true;
    }

    public TimeZoneSpecifier(int beginIndex, IntervalPrimary intervalPrimary) {
        this.beginIndex = beginIndex;
        this.endIndex = intervalPrimary.getEndIndex();
        this.intervalPrimary = intervalPrimary;
        this.timeZone = true;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public boolean isLocal() {
        return local;
    }

    public boolean isTimeZone() {
        return timeZone;
    }

    public IntervalPrimary getIntervalPrimary() {
        return intervalPrimary;
    }

}
